{include file="public/header" /}

{include file="people/user_info" /}

<div class="container mtb-15">
	<div class="list-box data-list-box">
		<div class="list-body">
			{include file="people/nav" /}
			<div class="text-muted mb10 hidden-xs text-center">
				<div class="btn-group btn-group-xs">
					<a class="btn btn-default {:sprintf($msg_type == '' ? 'active' : '')}" href="{:url('People/message', array('user_id' => $user_id))}" role="button">全部</a>
					<a class="btn btn-default {$msg_type == 'ask_answer' ? 'active' : ''}" href="{:url('People/message', array('msg_type' => 'ask_answer', 'user_id' => $user_id))}" role="button">回答</a>
					<a class="btn btn-default {$msg_type == 'comment' ? 'active' : ''}" href="{:url('People/message', array('msg_type' => 'comment', 'user_id' => $user_id))}" role="button">评论</a>
					<a class="btn btn-default {$msg_type == 'to_me' ? 'active' : ''}" href="{:url('People/message', array('msg_type' => 'to_me', 'user_id' => $user_id))}" role="button">@我</a>
					<a class="btn btn-default {$msg_type == 'notice' ? 'active' : ''}" href="{:url('People/message', array('msg_type' => 'notice', 'user_id' => $user_id))}" role="button">通知</a>
				</div>
			</div>
			<table class="data-list">
				{volist name="list" id="rs"}
					<tr class="data-{$rs['log_id']}">
						<td>
							{gt name="rs.send_user_id" value="0"}
								<a href="{:url('People/index', array('user_id' => $rs['send_user_id']))}"><span class="">{$rs['send_user_name']}</span></a>
							{else/}
								<span>{$rs['send_user_name']}</span>
							{/gt}
							{$rs['first_desc']}
							<a href="{:url('Question/detail', array('ask_id' => $rs['ask_id']))}"><span class="">{$rs['content']}</span></a>
							{$rs['end_desc']}
						</td>
						<td width="150">{:date('Y-m-d H:i:s', $rs['create_time'])}</td>
					</tr>
				{/volist}
			</table>
			<div class="page">{$page}</div>
		</div>
	</div>
</div>

<style type="text/css">
.data-list span{
	color: #ff6e32;
}
</style>
{include file="public/footer" /}